package com.huilian.cloud.module.system.controller.admin.user.vo.user;

import com.huilian.cloud.framework.common.validation.Mobile;
import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Set;

@Schema(description = "管理后台 - 用户创建/修改 Request VO")
@Data
public class UserSaveReqVO {
    @Schema(description = "用户id", example = "1")
    private Integer userId;
    @Schema(description = "用户账号", example = "芋艿")
    private String userName;

    @Schema(description = "用户昵称", example = "李四")
    private String nickName;

    @Schema(description = "用户类型（00：超级管理员）", example = "2")
    private String userType;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号码")
    @Mobile
    private String phonenumber;

    @Schema(description = "用户性别(0男 1女 2未知)")
    private String sex;

    @Schema(description = "电子签名")
    private String avatar;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "账号状态（0正常 1停用)", example = "2")
    private String status;

    @Schema(description = "删除标志（0未删除 2已删除）")
    private String delFlag;

    @Schema(description = "最后登录ip")
    private String loginIp;

    @Schema(description = "部门id", example = "11247")
    private Integer deptId;

    @Schema(description = "系统分组的id(可以理解为用户所属公司)", example = "26083")
    private Integer groupId;

    @Schema(description = "创建人id", example = "28653")
    private Integer createUserId;

    @Schema(description = "更新人id", example = "585")
    private Integer updateUserId;

    @Schema(description = "头像地址")
    private String headPicture;

    @Schema(description = "第三方系统中的用户id", example = "5539")
    private String otherUserId;

    @Schema(description = "标记")
    private Integer commonFlag;


    @Schema(description = "标记")
    private Set<Long> postIds;
    @Schema(description = "备注", example = "我是一个用户")
    @DiffLogField(name = "备注")
    private String remark;


}
